import request from '@/utils/request'

// 物流申报规则-列表
export const declareRulesList = data =>
  request({
    url: `/base/declare-rules/index`,
    method: 'post',
    data,
  })

// 物流申报规则-详情
export const declareRulesDetail = params =>
  request({
    url: `/base/declare-rules/detail`,
    method: 'get',
    params,
  })

// 物流申报规则-创建
export const createDeclareRules = data =>
  request({
    url: `/base/declare-rules/create`,
    method: 'post',
    data,
  })

// 物流申报规则-编辑
export const updateDeclareRules = data =>
  request({
    url: `/base/declare-rules/update`,
    method: 'post',
    data,
  })

// 物流申报规则-删除
export const deleteDeclareRules = data =>
  request({
    url: `/base/declare-rules/delete`,
    method: 'post',
    data,
  })

// 物流申报规则-启用禁用
export const statusDeclareRules = data =>
  request({
    url: `/base/declare-rules/status`,
    method: 'post',
    data,
  })

// 物流申报规则-创建一条申报规则
export const createDetail = data =>
  request({
    url: `/base/declare-rules/create-detail`,
    method: 'post',
    data,
  })

export const updateDetail = data =>
  request({
    url: `/base/declare-rules/update-detail`,
    method: 'post',
    data,
  })

export const deleteDetail = data =>
  request({
    url: `/base/declare-rules/delete-detail`,
    method: 'post',
    data,
  })
